import React from 'react';
import {useNavigationType,useResolvedPath} from "react-router-dom";
export default function News(){
    // 如何进入当前路由，POP（刷新），PUSH,REPLACE
    console.log(useNavigationType())
    // 解析路径
    console.log(useResolvedPath('/use?id=001&name=tom#qwe'))
    return (
        <div>
            <ul>
                <li>news001</li>
                <li>news002</li>
                <li>news003</li>
            </ul>
        </div>
    )
}